//
//  bestappAppDelegate.m
//  bestapp
//
//  Created by iDeneb on 7/19/10.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import "bestappAppDelegate.h"
#import "FirstViewController.h"

@implementation bestappAppDelegate

@synthesize window;
@synthesize tabBarController;
@synthesize navigationController;
@synthesize settingsController, firstViewController;


- (void)applicationDidFinishLaunching:(UIApplication *)application {    
	//self.firstViewController = [[FirstViewController alloc]initWithNibName:@"FirstView" bundle:nil];
	//[window addSubview:firstViewController.view];
    // Override point for customization after application launch
    [window makeKeyAndVisible];
}

- (void) init{
	self.settingsController = [[[SettingsViewController alloc] initWithStyle:UITableViewStyleGrouped] autorelease];
	UINavigationController *settingsNavigationController = [[[UINavigationController alloc] initWithRootViewController:self.settingsController] autorelease];
	
	// Set up tab bar
	self.tabBarController = [[UITabBarController alloc] init];
	[self.tabBarController setViewControllers:[NSArray arrayWithObjects:settingsNavigationController, nil]];
	
}

- (void)dealloc {
    [window release];
    [super dealloc];
}


@end
